package com.example.kotlinExample.controller

import com.alibaba.excel.context.AnalysisContext
import com.alibaba.excel.event.AnalysisEventListener
import com.example.kotlinExample.entity.DemoData

/**
 *
 *
 * @author liliang
 */
class ExcelListener: AnalysisEventListener<DemoData>() {

    override fun invoke(data: DemoData?, context: AnalysisContext?) {
        println(data)
    }

    override fun invokeHeadMap(headMap: MutableMap<Int, String>?, context: AnalysisContext?) {
        println("表头: $headMap")
    }

    override fun doAfterAllAnalysed(context: AnalysisContext?) {
        println("读取完毕")
    }

}